<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>

<?//echo '<pre>';print_r($arResult);echo '</pre>';?>

<ul id="my_carousel">
<?
$i = 0;
?>
<?foreach($arResult["ITEMS"] as $arItem){?>
    <?
    $i++;
    $sw_top = 'sw'.$i.'_top';
    $sw_middle = 'sw'.$i.'_middle';
    ?>
    <li>
        <div class="slide_wrapper">
            <div id="<?=$sw_top?>" class="swt">
                <h1><?=$arItem['PROPERTIES']['TITLE']['VALUE']?></h1>
                <?=$arItem['PROPERTIES']['TEXT']['~VALUE']['TEXT']?>
            </div>
            <?if($arItem['PROPERTIES']['TEXT_MIDDLE']['~VALUE']['TEXT']){?>
            <div id="<?=$sw_middle?>" class="sw_middle">
                <?=$arItem['PROPERTIES']['TEXT_MIDDLE']['~VALUE']['TEXT']?>
            </div>
            <?}?>
            <?if($arItem['PROPERTIES']['TEXT_BOTTOM']['~VALUE']['TEXT']){?>
            <div class="sw_bottom">
                <?=$arItem['PROPERTIES']['TEXT_BOTTOM']['~VALUE']['TEXT']?>
            </div>
            <?}?>
            <?if($arItem['PROPERTIES']['TEXT_BLANK']['~VALUE']['TEXT']){?>
            <?=$arItem['PROPERTIES']['TEXT_BLANK']['~VALUE']['TEXT']?>
            <?}?>
        </div>
    </li>

<?}?>
</ul>



